package com.rcloud.server.sealtalk.model.dto;

import io.rong.messages.BaseMessage;
import io.rong.util.GsonUtil;

import java.math.BigDecimal;

/**
 * 一句话描述功能
 *
 * @author yichat
 * @date create in 10:06 2020/6/19 2020
 */
public class RCMessageDto extends BaseMessage {

    private String operation = "";
    private String extra = "";
    private String sourceUserId = "";
    private String targetUserId = "";
    private String message = "";
    private String type = "";
    private String content;
    private Integer destructDuration;
    private String redPackgeDec;
    private String userid;
    private String receiveUserId;
    private Integer redPackgeId;
    private BigDecimal redpacketMoney;



    public RCMessageDto() {
    }

    public RCMessageDto(String operation, String objectName, String extra, String sourceUserId, String targetUserId, String message) {
        this.operation = operation;
        this.extra = extra;
        this.sourceUserId = sourceUserId;
        this.targetUserId = targetUserId;
        this.message = message;
        this.type = objectName;
    }

    public String getReceiveUserId() {
        return receiveUserId;
    }

    public void setReceiveUserId(String receiveUserId) {
        this.receiveUserId = receiveUserId;
    }

    public BigDecimal getRedpacketMoney() {
        return redpacketMoney;
    }

    public void setRedpacketMoney(BigDecimal redpacketMoney) {
        this.redpacketMoney = redpacketMoney;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    @Override
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getOperation() {
        return this.operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getExtra() {
        return this.extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public String getSourceUserId() {
        return this.sourceUserId;
    }

    public void setSourceUserId(String sourceUserId) {
        this.sourceUserId = sourceUserId;
    }

    public String getTargetUserId() {
        return this.targetUserId;
    }

    public void setTargetUserId(String targetUserId) {
        this.targetUserId = targetUserId;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getDestructDuration() {
        return destructDuration;
    }

    public void setDestructDuration(Integer destructDuration) {
        this.destructDuration = destructDuration;
    }

    public String getRedPackgeDec() {
        return redPackgeDec;
    }

    public void setRedPackgeDec(String redPackgeDec) {
        this.redPackgeDec = redPackgeDec;
    }

    public Integer getRedPackgeId() {
        return redPackgeId;
    }

    public void setRedPackgeId(Integer redPackgeId) {
        this.redPackgeId = redPackgeId;
    }

    @Override
    public String toString() {
        return GsonUtil.toJson(this, RCMessageDto.class);
    }


}


